package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 李旭
 * @date 2021/10/20 16:03
 * @Description:
 */
public interface OrderInfoService {
    boolean hasStock(OrderDetail orderDetail);

    Long insertOrder(OrderInfo orderInfo);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, ProcessStatus processStatus);

    Map initWareOrder(Long orderId);

    //初始化库存那边需要的数据
    Map initWareOrder(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);
}
